package com.dubbo.consumer.quickstart;

import com.alibaba.dubbo.config.annotation.Reference;
import com.dubbo.service.IHelloService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class QuickstartConsumer {
    @Reference(url = "dubbo://127.0.0.1:20880")
    private IHelloService helloService;

    @GetMapping(value = "test")
    public void test(){
        helloService.sendMessage("你好");
    }
}
